package cn.jinjie.day05.test4;

public class GirlFriend extends Person {
    public GirlFriend() {
    }

    public GirlFriend(String name, double height) {
        super(name, height);
    }

    // a.属性:姓名,身高
    // b.行为:做饭,洗衣服(洗某一件衣服,用衣服类作为形参)
    public void cook() {
        System.out.println("女朋友做饭");
    }

    public void washClothes(Clothes c1) {
        System.out.println("洗了一件" + c1.getBrand() + "的" + c1.getColor() + "衣服");
    }
}
